﻿
using stdCall.Models;
namespace stdCall.MyUtils
{
    /// <summary>
    /// 学生ArrayList的排序规则：学号升序
    /// </summary>
    class StudentCompare : System.Collections.IComparer
    {
        public int Compare(object x, object y)
        {
            return int.Parse(((Student)x).Number) - int.Parse(((Student)y).Number);
        }
    }
  
}
